package com.conpany.project.MapperTest;

import java.math.BigDecimal;
import java.util.Date;

import javax.annotation.Resource;

import org.junit.Test;

import com.company.project.dao.TradeUserMapper;
import com.company.project.model.TradeUser;
import com.conpany.project.Tester;

public class UserMapper extends Tester {
	@Resource
	TradeUserMapper tradeUserMapper;

	@Test
	public void reduceUserMoney() {
		TradeUser entity = new TradeUser();
		entity.setUserMobile("111");
		entity.setUserMoney(new BigDecimal(200));
		entity.setUserName("张三");
		entity.setUserPassword("1234567");
		entity.setUserRegTime(new Date());
		int i = tradeUserMapper.insert(entity);

		System.out.println("======" + i);
	}

	@Test
	public void addUserMoney() {

	}
}
